package com.learn2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 16:29 2018-11-15
 * @Modify by:
 */
@Controller
public class AdviceController {

  @RequestMapping("/advice")
  public void getAdvice(@ModelAttribute("msg") String msg){

    throw new IllegalArgumentException("非常抱歉参数错误"+msg);
  }

}
